package cn.itcast.mapper;


import cn.itcast.pojo.Customer;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer custId);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer custId);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
    
    //客户列表
    List<Customer> secectCustomerlist(@Param("custName") String custName, @Param("custSource") String custSource,
                                      @Param("custIndustry") String custIndustry, @Param("custLevel") String custLevel,
                                      @Param("start") Integer start, @Param("rows") Integer rows);
    //客户总数
    Integer secectCustomerlistCount( Customer customer);

    //添加客户
    Integer creatCustomer(@Param("custName") String custName,@Param("custUserId") Integer custUserId,
                          @Param("custCreateId") Integer custCreateId, @Param("custSource") String custSource,
                          @Param("custIndustry") String custIndustry,@Param("custLevel") String custLevel,
                          @Param("custLinkman") String custLinkman,@Param("custPhone") String custPhone,
                          @Param("custMobile") String custMobile, @Param("custZipcode") String custZipcode,
                          @Param("custAddress") String custAddress,@Param("custCreatetime") Timestamp custCreatetime);
}